<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Login</title>

    <!-- Bootstrap Core CSS -->
    <link href="./Public/Admin/css/bootstrap.min.css" rel="stylesheet" />

    <!-- MetisMenu CSS -->
    <link href="../bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="./Public/Admin/css//sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
	<link rel="stylesheet" href="./Public/Admin/css/font-awesome.min.css" />


</head>

<body>

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">车将领智慧智慧工位车型识别系统后台登录</h3>
                    </div>
                    <div class="panel-body">


                            <form name="form" role="form" action="?c=user&a=checkLogin" method="post" onSubmit="return checkForm();">

                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="账号" name="username">
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="密码" name="password" type="password" value="">
                                </div>
                                <!--
                                <div class="form-group">
                                    <div class="field">
                                        <input data-validate="required:请输入验证码" class="form-control" name="verify" type="text" placeholder="请输入验证码">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="field">
                                        <img src="?c=User&a=captcha" style="cursor: pointer;" onclick="this.src=this.src" class="passcode" alt="captcha" />
                                    </div>
                                </div>
                                -->
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="Remember Me">记住密码
                                    </label>

                                </div>
                                <!-- Change this to a button or input when using this as a form -->
                                <input type="submit" value="登陆" class="btn btn-lg btn-success btn-block">
								<div style="text-align:right;">
									<a href="../User/register.html" class="btn ">没有账号密码？点击注册</a>
								</div>

                            </fieldset>
                        </form>
                        <script>
                            //js用户获得焦点
                            window.onload = SetFocus();
                            function SetFocus()
                            {
                                if(document.form.username.value==""){
                                    document.form.username.focus();
                                }else{
                                    document.form.username.select();
                                }
                            }
                            /*
                            * js判空
                            * 账号密码不能为空
                            * */
                            function checkForm(){
                                //验证用户名为空
                                if(document.form.username.value==""){
                                    alert("用户名不能为空");
                                    document.form.username.focus();   //重新定位光标
                                    return false;
                                //验证密码为空
                                }else if(document.form.password.value==""){
                                    alert("密码不能为空");
                                    document.form.password.focus();    //重新定位光标
                                    return false;
                                }// 这里写一个验证码验证 4位验证码
                                return true;
                            }
                        </script>
                    </div>
                </div>
            </div>
        </div>
    </div>


</body>

</html>
